package abstracttransaction

import (
	"fmt"
	"log"
	"salarypayment-case/Model"
)


type ChangeAffiliationTransaction struct {
	ChangeEmployeeTransaction
	AffiliationTransaction
}

func (ca *ChangeAffiliationTransaction) Change(e *Model.Employee) {
	ca.RecordMembership(e)
	af := ca.GetAffiliation()

	e.SetAffiliation(af)
}

func (ca *ChangeAffiliationTransaction) CalculateDeductions(pc Model.Paycheck) {
	err := fmt.Errorf("The method or operation is not implemented.")
	log.Println(err.Error())
}